import graphRequest from '../request'

const get_all_relations = () => {
  const res = graphRequest('/get_all_relation')
  return res
}
const search_relation = (name) => {
  const res = graphRequest({
    url: '/search_name',
    params: {
      name: name
    }
  })
  return res
}
const get_relation_answer = (name) => {
  const res = graphRequest({
    url: '/KGQA_answer',
    params: {
      name: name
    }
  })
  return res
}
export {
  get_all_relations,
  search_relation,
  get_relation_answer
}